home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / CIncludes / CMPRComponent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-08-17  |  2.4 KB  |  117 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        CMPRComponent.h
  3.  
  4.      Contains:    ColorSync ProfileResponder Component API
  5.  
  6.      Version:    Technology:    ColorSync 1.0
  7.                  Release:    Universal Interfaces 3.2
  8.  
  9.      Copyright:    © 1993-1998 by Apple Computer, Inc. All rights reserved.
  10.  
  11.      Bugs?:        For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __CMPRCOMPONENT__
  18. #define __CMPRCOMPONENT__
  19.  
  20. #ifndef __MACTYPES__
  21. #include <MacTypes.h>
  22. #endif
  23. #ifndef __QUICKDRAW__
  24. #include <Quickdraw.h>
  25. #endif
  26. #ifndef __COMPONENTS__
  27. #include <Components.h>
  28. #endif
  29. #ifndef __CMAPPLICATION__
  30. #include <CMApplication.h>
  31. #endif
  32.  
  33.  
  34.  
  35. #if PRAGMA_ONCE
  36. #pragma once
  37. #endif
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43. #if PRAGMA_IMPORT
  44. #pragma import on
  45. #endif
  46.  
  47. #if PRAGMA_STRUCT_ALIGN
  48.     #pragma options align=mac68k
  49. #elif PRAGMA_STRUCT_PACKPUSH
  50.     #pragma pack(push, 2)
  51. #elif PRAGMA_STRUCT_PACK
  52.     #pragma pack(2)
  53. #endif
  54.  
  55.  
  56. enum {
  57.     CMPRInterfaceVersion        = 0
  58. };
  59.  
  60. /* Component function selectors */
  61.  
  62. enum {
  63.     kCMPRGetProfile                = 0,
  64.     kCMPRSetProfile                = 1,
  65.     kCMPRSetProfileDescription    = 2,
  66.     kCMPRGetIndexedProfile        = 3,
  67.     kCMPRDeleteDeviceProfile    = 4
  68. };
  69.  
  70.  
  71. EXTERN_API( CMError )
  72. CMGetProfile                    (ComponentInstance         pr,
  73.                                  CMProfileHandle         aProfile,
  74.                                  CMProfileHandle *        returnedProfile)                    FIVEWORDINLINE(0x2F3C, 0x0008, 0x0000, 0x7000, 0xA82A);
  75.  
  76. EXTERN_API( CMError )
  77. CMSetProfile                    (ComponentInstance         pr,
  78.                                  CMProfileHandle         newProfile)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0001, 0x7000, 0xA82A);
  79.  
  80. EXTERN_API( CMError )
  81. CMSetProfileDescription            (ComponentInstance         pr,
  82.                                  long                     DeviceData,
  83.                                  CMProfileHandle         hProfile)                            FIVEWORDINLINE(0x2F3C, 0x0008, 0x0002, 0x7000, 0xA82A);
  84.  
  85. EXTERN_API( CMError )
  86. CMGetIndexedProfile                (ComponentInstance         pr,
  87.                                  CMProfileSearchRecordHandle  search,
  88.                                  CMProfileHandle *        returnProfile,
  89.                                  long *                    index)                                FIVEWORDINLINE(0x2F3C, 0x000C, 0x0003, 0x7000, 0xA82A);
  90.  
  91. EXTERN_API( CMError )
  92. CMDeleteDeviceProfile            (ComponentInstance         pr,
  93.                                  CMProfileHandle         deleteMe)                            FIVEWORDINLINE(0x2F3C, 0x0004, 0x0004, 0x7000, 0xA82A);
  94.  
  95.  
  96.  
  97. #if PRAGMA_STRUCT_ALIGN
  98.     #pragma options align=reset
  99. #elif PRAGMA_STRUCT_PACKPUSH
  100.     #pragma pack(pop)
  101. #elif PRAGMA_STRUCT_PACK
  102.     #pragma pack()
  103. #endif
  104.  
  105. #ifdef PRAGMA_IMPORT_OFF
  106. #pragma import off
  107. #elif PRAGMA_IMPORT
  108. #pragma import reset
  109. #endif
  110.  
  111. #ifdef __cplusplus
  112. }
  113. #endif
  114.  
  115. #endif /* __CMPRCOMPONENT__ */
  116.  
  117.